# Contributor: Adam Plumb <adamplumb@gmail.com>
# Maintainer: Adam Plumb <adamplumb@gmail.com>
pkgname=headlines
pkgver=0.7.2
pkgrel=4
pkgdesc="GTK4 Reddit client written in C++"
url="https://gitlab.com/caveman250/Headlines"
arch="all !s390x !riscv64"
license="GPL-3.0-only"
depends="
	ffmpeg
	gst-plugins-bad
	gst-plugins-base
	gst-plugins-good
	yt-dlp
	"
makedepends="
	boost-dev
	cmake
	curl-dev
	gtkmm4-dev
	jsoncpp-dev
	libadwaita-dev
	libmicrohttpd-dev
	libsecret-dev
	openssl-dev>3
	samurai
	websocket++
	"
source="$pkgname-$pkgver-2.tar.gz::https://gitlab.com/caveman250/Headlines/-/archive/$pkgver/Headlines-$pkgver.tar.gz"
builddir="$srcdir/Headlines-$pkgver"
options="!check"

build() {
	cmake -B build -G Ninja \
		-DDIST_BUILD=ON \
		-DCMAKE_BUILD_TYPE=MinSizeRel \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="
f66f5b75742aff3908a75623281d4e540d4129dacc2e5740bf93c47840cf099d60b762a99bce32007ec8d6f61f9d9866ea2a2ad7dc217b76999eaec7fdd50d3a  headlines-0.7.2-2.tar.gz
"
